using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;


namespace TSPLoader
{

    
    public partial class Form1 : Form
    {
        public FileHeader fileheader;
        public Zone [] zones;
        
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult dr = openFileDialog1.ShowDialog();
            if (dr == DialogResult.OK)
            {
                zones = new Zone[40000];
                FileLoader f = new FileLoader(openFileDialog1.FileName);
                f.LoadFile(zones, fileheader);
            }
        }
    }
}